Create

Syntax

Var:Create(udtName, propName[, propName2])

Description

Registers a User-defined Type (UDT).

udtName - the desired name of the UDT. propName - any of the native data type (Number, String, or Boolean).

optionally, you can add:

Note

None.

If you will not use it, don't declare it :D – mjmendoza

Example

Var:Create(
PointUDT,
Number x,
Number y
)
Var:PointUDT myPoint;
Var:PointUDT myOtherPoint;
myPoint.x = 5;
myPoint.y = 10;
 
myOtherPoint.x = myPoint.x;
myOtherPoint.y = 15;
 
myPoint = myOtherPoint;
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net